package cn.crism.ssc.util;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

/**
 * @Author: Crism
 * @Description: Json处理类
 * @Data: 下午9:41 17/10/21
 */
public class JsonUtil {
    public static String toJson(Object object) {
        Gson gson = new GsonBuilder().setPrettyPrinting().create();
        return gson.toJson(object);
    }
}
